<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Message extends Model
{
    //
   
    public static $rules = [
//        'id' => 'required|number',
        'mobile'=>'regex:/^[1][0-9]{10}$/'
    ];
    public static $message = [
        'mobile.regex' => '手机号格式错误',
//        'id.required' => '参数错误',
//        'id.number' => '用户不存在',
    ];
}
